package com.test.rpc;

import com.test.rpc.common.ReflectionUtils;
import com.test.rpc.protocol.Request;

public class ServiceInvoker {
    public Object invoke(ServiceInstance service, Request request) {
        return ReflectionUtils.invoke(service.getTarget(), service.getMethod(), request.getParameters());
    }

}
